//@ sourceURL=MeetManageForm.js
MeetManageForm = Ext.extend(Ext.Window,
{
    constructor : function(a) {
        Ext.applyIf(this, a);
        this.initUIComponents();
        MeetManageForm.superclass.constructor.call(this, {
            layout : "fit",
            id : this.inputFormName,
            items : yearGridFormPanel,
            modal : true,
            bodyStyle : "padding:2px;",
            buttonAlign : "center",
            buttons : yearGridFormButtons,
            title : "会议资讯添加",
            iconCls : "menu-flowWait",
            width : 620,
            height : 450
        });
    },
    //初始化数据
    initUIComponents : function() {
        createyeargridform({
            operation:this,
            form:{
                saveUrl: __ctxPath+"/safemeeting/saveMeetManage.do",
                items:[
                       {
                           id : "meetManage.id",
                           name : "meetManage.id",
                           xtype : "hidden",
                           value : this.id == null ? "": this.id
                       }, {
                           name : "meetManage.years",
                           xtype : "hidden",
                           id : "meetManage.years",
                           value : this.years == null ? "" : this.years
                       },{
                           layout:"column",
                           bodyStyle:"padding:5px;",
                           items:[{
                               layout:"form",
                               bodyStyle:"padding:5px;",
                               defaultType:"textfield",
                               border:false,
                               columnWidth:0.5,
                               items:[{
                                   fieldLabel: '所属机构', 
                                   name: 'meetManage.institution'
                               }]
                       },{
                          layout:"form",
                          columnWidth:.5,
                          border:false,
                          bodyStyle:"padding:5px;",
//                        True表示为显示出面板body元素的边框，false则隐藏
                          defaultType:"textfield",
                          items:[{
                              fieldLabel:'主题'+'<font color=red>*</font>',
                              id:"meetManage.meetTheme",
                              name:"meetManage.meetTheme",
                             // maxLength:80,
                              allowBlank:false,
                              blankText:"主题不能为空！"
                          }]
                      },{
                          layout:"form",
                          border:false,
                          bodyStyle:"padding:5px;",
                          columnWidth:.5,
                          items:[{
                              //下拉选型设置
                                  fieldLabel : "会议类型",
                                  hiddenName : "meetManage.meetType",
                                  xtype : "combo",
                                  mode : "local",
                                  width : 146 ,
                                  editable : false,
                                  triggerAction : "all",
                                  store : [
                                          [ "1", "政府级" ],
                                          [ "2", "公司级" ],
                                          [ "3", "部门级" ] ],
                                  value : 3
                          }]
                      },{
                          layout:"form",
                          columnWidth:.5,
                          bodyStyle:"padding:5px;",
                          border:false,
//                        True表示为显示出面板body元素的边框，false则隐藏
                          defaultType:"textfield",
                          items:[{
                              fieldLabel:"参会部门",
                              id:"meetManage.department",
                              name:"meetManage.department",
                             // maxLength:80,
                              allowBlank:true
                              
                          }]
                      },{
                          layout:"form",
                          columnWidth:.5,
                          bodyStyle:"padding:5px;",
                          border:false,
                          items:[{
                              xtype:"datefield",
                              fieldLabel:'会议时间'+'<font color=red>*</font>',
                              id:"meetManage.meetDate",
                              format:"y-m-d",
                              name:"meetManage.meetDate",
                              allowBlank:false,
                              width : 146, 
                              blankText:"会议时间不能为空！"
                          }]
                      }
                      ]
           },{
               layout:"column",
               bodyStyle:"padding:5px;",
               items:[{
                   layout:"form",
                   bodyStyle:"padding:5px;",
                   columnWidth:1.,
                   items:[{
                   xtype:"textarea", 
                   fieldLabel: '会议地点', 
                   name: 'meetManage.meetPlace', 
                  // maxLength:300,
                   width : 448 
                   }]
               },{
                       columnWidth:1.,//第一列 
                        layout:"form", 
                        bodyStyle:"padding:5px;",
                        items:[{ 
                            xtype:"textarea", 
                            fieldLabel: '备注', 
                            name: 'meetManage.remark', 
                            width:448 
                            }] 
                   }]
           }
           ]
        },
        loadData:{
            getUrl:__ctxPath +"/safemeeting/getMeetManage.do",
            preName : "meetManage"
        },
        isShow:this.isShow
    });
}
});
